<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;  charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>app管理</title>
<link href="/admin/style/user/admin.css" type="text/css" rel="stylesheet" media="screen" />
<script type="text/javascript" src="http://www.sinaimg.cn/cj/dfz/js/base_v_0.1.js" charset="utf-8"></script> 
<style type="text/css">
.rstrt_span{display:inline-block;border:1px solid #ccc;background:#eee;padding:0 15px;line-height:28px;font-size:14px}

.down {background:url(/admin/images/sort_dn.gif) no-repeat right 0;padding-right:18px;}
.up {background:url(/admin/images/sort_up.gif) no-repeat right 0;padding-right:18px;}
.kw{background:#ddd;color:#999;}
</style>
</head>
<body>
	<div class="sec-title">
		<h3 class="title"><a href="#">app管理</a></h3>
	</div>
	<div style="margin:10px;">
		
	</div>
	
	<div style="margin:10px;">
		<form>
			&nbsp;&nbsp;
			&nbsp;&nbsp;
			话题：
			<input type="text" name="topic">
			<input type=submit value="查询"></input>
			<input type="button" onclick="window.open('app_manage_edit.php');" style="float:right;" value="添加内容">
		</form>
		
	</div>
	<div style="margin:10px;">
		
	</div>
	
	<div class="w10">
	<table class="table-list">
		<tr>
		<th>图片</th>
		<th>内容</th>
		<th>链接</th>
		<th>时间</th>
		
		
		
		<th width=10%>操作</th></tr>
		{%section name=count loop=$g_show.list%}
		<tr class="cur" id="list_tr_{%$g_show.list[count].id%}">
		<td>
		<img src="{%$g_show.list[count].pic%}" width="120">
		
		</td>
		<td>
		{%$g_show.list[count].content%}
		</td>
		<td>
		{%$g_show.list[count].link%}
		</td>
		<td>
		{%$g_show.list[count].create_time%}
		</td>
		
		

		<td>
		
		<a href="javascript:void(0);" onclick=del_one({%$g_show.list[count].id%});>删除</a>
		
		
		
		</td>

		</tr>
		{%sectionelse%}
		<tr><td colspan="8">
		目前列表中没有内容
		</td></tr>
		{%/section%}
	</table>
	</div>
	<div style="margin:10px;">
		
		<div style="display:inline;">
			{%$g_show.page_bar%}
		</div>
	</div>
	


	<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
<script>


function del_one(id)
{
	if(!id)
	{
		alert("没选择？！");
		return false;
	}
	$.post('app_manage_edit_post.php?type=del&id='+id, '', function(data){
		if (data.error == 1)
		{
			alert(data.errmsg);
		}
		else
		{
			
			alert("操作成功。");
			window.location.reload();
		}
	}, 'json');
}


function undel_one(id)
{
	if(!id)
	{
		alert("没选择？！");
		return false;
	}
	$.post('mblog_pubu_content_tuijian_post.php?type=undel&id='+id, '', function(data){
		if (data.error == 1)
		{
			alert(data.errmsg);
		}
		else
		{
			alert("操作成功。");
			window.location.reload();
		}
	}, 'json');
}



</script>
</html>
